package org.dromara.agriculture.domain.bo;

import org.dromara.agriculture.domain.AgricultureGermplasm;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 种质业务对象 agriculture_germplasm
 *
 * @author Robin
 * @date 2024-12-05
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = AgricultureGermplasm.class, reverseConvertGenerate = false)
public class AgricultureGermplasmBo extends BaseEntity {

    /**
     * 种质ID
     */
    @NotNull(message = "种质ID不能为空", groups = { EditGroup.class })
    private Long germplasmId;

    /**
     * 作物名称
     */
    @NotBlank(message = "作物名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String cropName;

    /**
     * 作物英文名称
     */
    @NotBlank(message = "作物英文名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String cropEnName;

    /**
     * 种质名称
     */
    @NotBlank(message = "种质名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String germplasmName;

    /**
     * 种质英文名称
     */
    @NotBlank(message = "种质英文名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String germplasmEnName;

    /**
     * 种质图片
     */
    @NotBlank(message = "种质图片不能为空", groups = { AddGroup.class, EditGroup.class })
    private String germplasmImg;

    /**
     * 宣传语
     */
    @NotBlank(message = "宣传语不能为空", groups = { AddGroup.class, EditGroup.class })
    private String germplasmDes;

    /**
     * 备注
     */
    @NotBlank(message = "备注不能为空", groups = { AddGroup.class, EditGroup.class })
    private String remark;

    /**
     * 状态
     */
    @NotBlank(message = "状态不能为空", groups = { AddGroup.class, EditGroup.class })
    private String status;

    /**
     * 排序
     */
    @NotNull(message = "排序不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long orderNum;

    /**
     * 基地ID
     */
    @NotNull(message = "基地ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long baseId;

    /**
     * 用户ID
     */
    @NotNull(message = "用户ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long userId;


}
